<template>
  <up-tabbar activeColor="#6bc493">
    <up-tabbar-item text="首页" icon="/static/shou.png" @click="navigateTo('/pages/index/index')"></up-tabbar-item>
    <up-tabbar-item text="空闲地" icon="/static/de.png" @click="navigateTo('/pages/land/index')"></up-tabbar-item>
    <up-tabbar-item text="我的土地" icon="/static/fa.png" @click="navigateTo('/pages/myLand/index')"></up-tabbar-item>
    <up-tabbar-item text="商城" icon="/static/shop.png" @click="navigateTo('/pages/shop/shop')"></up-tabbar-item>
    <up-tabbar-item text="我的" icon="/static/ren.png" @click="navigateTo('/pages/mine/index')"></up-tabbar-item>
  </up-tabbar>
</template>

<script setup>
const navigateTo = (url) => {
  uni.navigateTo({
    url,
    fail: (err) => {
      console.error('Failed to navigate:', err);
    },
  });
};
</script>

<style scoped>
  /* 这里可以放你的组件样式 */
</style>

